package com.wang.mandkey.activity;

import android.os.Bundle;
import android.view.KeyEvent;
import android.view.WindowManager;

import com.wang.mandkey.R;
import com.wang.mandkey.bean.GuiderImageAdapter;
import com.wang.mandkey.views.CircleFlowIndicator;
import com.wang.mandkey.views.ViewFlow;

public class HelpActivity extends BaseActivity {

	private ViewFlow viewFlow;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		initView();
	}

	private void initView() {
		setContentView(R.layout.help);
		getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
				WindowManager.LayoutParams.FLAG_FULLSCREEN);
		
		viewFlow = (ViewFlow) findViewById(R.id.viewflow);// 图片
		GuiderImageAdapter guia=new GuiderImageAdapter(this);
		viewFlow.setAdapter(guia);
		CircleFlowIndicator indic = (CircleFlowIndicator) findViewById(R.id.viewflowindic);// 小点点
		viewFlow.setFlowIndicator(indic);
	}


	@Override
	public boolean onKeyDown(int keyCode, KeyEvent event) {
		if (keyCode == KeyEvent.KEYCODE_BACK) {
			finish();
		}
		return false;
	}
}
